<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Widget Store Administration</title>


<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/widget.css" />
<link type="text/css" href="css/cupertino/jquery-ui-1.10.0.custom.min.css" rel="stylesheet" />	
<link type="text/css" href="css/ui.jqgrid.css" rel="stylesheet" />
<link type="text/css" href="css/multiple-select.css" rel="stylesheet"/>

<script src="js/lang/en.js" type="text/javascript"></script>
<script src="js/lang/pt.js" type="text/javascript"></script>

<script src="js/libs/modernizr-2.0.6.min.js"></script>

<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.0.custom.min.js"></script>

<script type="text/javascript" src="js/cookies.js"></script>
<script type="text/javascript" src="js/signals.js"></script>
<script type="text/javascript" src="js/base64.js"></script>
<script type="text/javascript" src="js/store.js"></script>
<script type="text/javascript" src="js/icon_chooser.js"></script>

<script type="text/javascript" src="js/grid.locale-en.js"></script>
<script type="text/javascript" src="js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="js/jquery.multiple.select.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/user.js"></script>

<script type="text/javascript">
</script>	

</head>

<body>


<div id="page">

<div class="headerMain">
    <div class="navigationBar">
    	<div class="navigationItem" onclick="goHome()" id="store_link">Widget Store</div>
        <div class="navigationItem" onClick="goToCategorySearch()" id="categories_link">Categories</div>
        <div class="navigationItem" onClick="goToFavourites()" id="favourites_link">Favourites</div>
        <div class="logged-in"><div class="navigationItemSelected" id="my_widgets_link">My Widgets</div></div>
        <div class="logged-in"><div class="navigationItem" onClick="goToWidgetCreator()" id="creator_link">Creator</div></div>
        <div class="admin-view"><div class="navigationItem" onClick="goToAdmin()" id="admin_link">Admin</div></div>
        <div class="searchtag" onclick="searchStore();">Search</div>
        <input class="searchBox" type="text" name="q" placeholder="Search term here" id="searchText" />
        <div class="login" id="login"></div>
        <div class="clear"></div>
    </div>
    <div class="clear"> </div>
</div>
<div class="clear"> </div>

<div class="logged-in">
<table id="widgetList"></table>
<div id="pager"></div>
</div>





<footer>
 </footer>
</div> <!-- page -->
 
<div id="viewDialog"><div id="viewContents"></div></div>
<div id="categoriesDialog"><select id="categorySelect" multiple="multiple" style="width:250px"></select></div>
<div id="editDialog"><form id="embedform" action="" method="PUT">
                <input type="hidden" id="embedformuser" name="username"/>
                <fieldset>
                <input type="hidden" id="buildertype" name="builder" value="embed"/>
                <table>
                     <tr>
                     	<td>
                        	<label for="widgetname" id="widgetname_label">Widget Name:</label>
                        </td>
                        <td>
                        	<span id="widgetname"></span>
                        </td>
                     </tr>
                	<tr>
                    	<td>
                        	<label for="embed" id="embed_label">Paste embed code or any html here:</label>
                        </td>
                        <td>
                        	<textarea rows="5" cols="50" id="embed" name="embed"></textarea>
                        </td>
                     </tr>
                     <tr>
                     	<td>
                        	<label for="web_icon_chooser" id="iconchooser_label">Choose An Icon:</label>
                        </td>
                     	<td><div id="web_icon_chooser"></div></td>
                     </tr>
                     <tr>
                     	<td>
                        	<label for="widgetdescription" id="widgetdescription_label">Widget Description:</label>
                        </td>
                        <td>
                        	<textarea rows="5" cols="50" id="widgetdescription" name="widgetdescription"></textarea>
                        </td>
                    </tr>
                    <tr>
                    	<td>
                        	<label for="widgetwidth" id="widgetwidth_label">Widget Width:</label>
                        </td>
                        <td>
                        	<input type="number" id="widgetwidth" name="widgetwidth"/>
                        </td>
                    </tr>
                    <tr>
                    	<td>
                        	<label for="widgetheight" id="widgetheight_label">Widget Height:</label>
                        </td>
                        <td>
                        	<input type="number" id="widgetheight" name="widgetheight"/>
                        </td>
                    </tr>
                    <tr>
                    	<td>
                    		<!--  <input type="submit" value="Submit"/> -->
                    	</td>
                    	
                    </tr>

                </table>
                    
                </fieldset>
                </form>
                <button onClick="updateEmbed()"><span id="submit_label">Submit</span></button>
</div>
</body>
</html>
